GetGlobal
Returns the global object for the current context.
Please note, that for the
.docbuilder
file theCDocBuilderContext.GetGlobal
method is not used.
Syntax
HRESULT GetGlobal([out, retval] I_DOCBUILDER_VALUE** result);
Parameters
Parameter | Type | Description |
---|---|---|
result | I_DOCBUILDER_VALUE** | The returned global object |
Example
COM
CoInitialize(NULL);
IONLYOFFICEDocBuilder* oBuilder = NULL;
IONLYOFFICEDocBuilderContext* oContext = NULL;
IONLYOFFICEDocBuilderValue* oGlobal = NULL;
oBuilder->Initialize();
oBuilder->GetContext(&oContext);
oContext->GetGlobal(&oGlobal);
oBuilder->Dispose();